cmake_minimum_required(VERSION 3.10)
project(transPC)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_BUILD_TYPE "Release")
# 设置PCL点云库依赖
find_package(PCL)
include_directories(${PCL_INCLUDE_DIRS})
list(REMOVE_ITEM PCL_LIBRARIES "vtkproj4")#不加这个会报错
link_directories(${PCL_LIBRARY_DIRS})
#下面这行很重要,有时候我自己会写成${PCL_LIBS}这样在使用kdtree相关功能时会出错,使用其他功能时没问题
#说明${PCL_LIBS}与${PCL_LIBRARIES}都定义了但是定义得不一样
link_libraries(${PCL_LIBRARIES})
add_definitions(${PCL_DEFINITIONS})
# find_package(Eigen3 REQUIRED)
# include_directories(${EIGEN3_INCLUDE_DIRS})
find_package(Utils REQUIRED)
include_directories(${Utils_INCLUDE_DIRS})
link_libraries(${Utils_LIBRARIES})

add_executable(transPC main.cpp)
install(TARGETS transPC RUNTIME DESTINATION bin)